Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude top-level macro expansions from source location override. #39678

Merged
merged 1 commit into from
Feb 10, 2017

Conversation

vadimcn
Copy link
Contributor

@vadimcn vadimcn commented Feb 9, 2017

It occurred to me that a simple heuristic can address the issue #36382: any macros that expand into items (including include!()) don't need to be stepped over because there's not code to step through above a function scope level.

r? @michaelwoerister

@michaelwoerister
Copy link
Member

@bors r+

Very nice, @vadimcn !

@bors
Copy link
Contributor

bors commented Feb 9, 2017

📌 Commit d113b39 has been approved by michaelwoerister

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Feb 9, 2017
…erister

Exclude top-level macro expansions from source location override.

It occurred to me that a simple heuristic can address the issue rust-lang#36382: any macros that expand into items (including `include!()`) don't need to be stepped over because there's not code to step through above a function scope level.

r? @michaelwoerister
bors added a commit that referenced this pull request Feb 9, 2017
Rollup of 6 pull requests

- Successful merges: #39604, #39619, #39670, #39678, #39682, #39683
- Failed merges:
@bors bors merged commit d113b39 into rust-lang:master Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants